package model
{
	import flash3.framework.Singleton;
	import vo.LoginInfo;
	import flash.net.navigateToURL;
	import flash.net.URLRequest;
	import model.MeInfoModel;
	
	public class GlobalModel
	{
		public static const LOGIN_MODE_LOCAL:String = "local";
		public static const LOGIN_MODE_MAOPU:String = "maopu";
		public function GlobalModel()
		{
		}
		
		static public function get i():GlobalModel
		{
			return Singleton.getInstanceOrCreate(GlobalModel) as GlobalModel;
		}
		
		public var bShowOnLineCount:uint;
			
		public var loginInfo:LoginInfo = new LoginInfo(); 
		
		public static var loginUrl:String = "http://youxi.mop.com/";	
		public static var addMoneyUrl:String = "http://192.168.2.137:8080/";
		
		public static var loginMode:String = LOGIN_MODE_MAOPU;
		
		public static function navigateToLogin():void
		{
			navigateToURL(new URLRequest(loginUrl), "_self");
		}
		
		public static function navigateToAddMoney():void
		{
			navigateToURL(new URLRequest(addMoneyUrl), "_blank");
		}
	}
}